<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta name="" content="">
    <title>个人中心-我的订单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="copyright" content="">
    <link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/header.css" media="all">
    <link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/pkg-order.css" media="all">

</head>

<!--载入公共模板 头部-->
        <!-- 公共头部 -->
<body class="media_screen_1200">
	<!--右侧导航栏-->
	<div style="right: 0px;" class="mgj_rightbar">
		<!--空的右侧边栏-->
		<div id="mgj_rightbar_top_blank" class="mgj_rightbar_960">
		</div>
		<!--方便定margin的空div-->
		<div id="mgj_rightbar_blank_div">
		</div>
		<!--用户头像-->
		<!--购物车-->
		<div style="left: 0px;" class="sidebar-item mgj-my-cart">
			<a target="_blank" href="http://127.0.0.1/c_57_shop/my_store/index.php?m=Home&c=Cart&a=index" >
				<i class="s-icon">
				</i>
				<div class="s-txt">
					购物车
				</div>
				<div class="num">
					
				</div>
			</a>
		</div>
		
		<!--钱包-->
		<div class="sidebar-item mgj-my-wallet">
			<a target="_blank" href="http://127.0.0.1/c_57_shop/my_store/index.php?m=Home&c=Member&a=wallet">
				<i class="s-icon">
				</i>
				<!--我的钱包-->
				<div class="s-txt">
					钱包
				</div>
			</a>
		</div>
		<!--足迹-->
		<div class="sidebar-item mgj-my-browserlog">
			<a target="_blank" href="">
				<i class="s-icon">
				</i>
				<!--我的足迹-->
				<div class="s-txt">
					足迹
				</div>
			</a>
		</div>
		<!--返回顶部-->
		<div class="sideBottom">
			<div class="sidebar-item mgj-back2top show" style="left: 0px;">
				<a href="javascript:;">
					<i class="s-icon">
					</i>
				</a>
			</div>
		</div>
	</div>
	<!--右侧导航栏-结束->
	<!--顶部开始-->
	<div id="header" class="header_2015">
		<div class="wrap clearfix">
			<!-- 顶通 -->
			<a href="http://127.0.0.1/c_57_shop/my_store/index.php?m=Home&c=Index&a=index" class="home fl">
				蘑菇街首页
			</a>
			<ul class="header_top">
<!-- ================== -->
				<!-- 如果用户没有登录那就显示登录注册 -->
								<!-- 如果用户已经登录那就显示用户的信息 -->
				<!-- 登陆之后出现 -->
				<li class="s1 has_icon user_meta haahah">
					<!-- 用户昵称 -->
					
					<a style="color:red;" href="javascript:;" >
						lpf					</a>

					<!-- 等级 -->
					<a target="_blank" href="" >
						<span class="level level0">
						</span>
					</a>
					<i class="icon_delta">
					</i>
					<ol id="menu_personal" class="ext_mode">
						<li class="s2">
							<a href="http://127.0.0.1/c_57_shop/my_store/index.php?m=Home&c=Member&a=accountSettings"  target="_blank" >
								个人设置
							</a>
						</li>
						
						<!-- 退出登录 -->
						<li class="s2">
							<a href="http://127.0.0.1/c_57_shop/my_store/index.php?m=Home&c=User&a=out"  >
								退出
							</a>
						</li>
					</ol>
				</li>
				<!-- ===================== -->
				<li class="s1 has_line message_center">
					<a class="ext_module mogutalk_btn J_msg open_msg micon __trace__"  href="javascript:;" rel="nofollow" >
						消息
						<span class="num m_num" style="display: none;">
						</span>
					</a>
				</li>
		
				
               				<!-- ======= -->
				<!--我的订单-->
				<li class="s1 myorder has_line">
					<a href="http://127.0.0.1/c_57_shop/my_store/index.php?m=Home&c=Member&a=index" target="_blank" class="text display_u">
						我的订单
					</a>
				</li>
				<!--我的订单--结束-->
				<!--我的购物车-开始-->
				<li class="s1 has_line shopping_cart_v2">
					<a class="cart_info_wrap" href="" target="_blank">
						<span class="cart_info">购物车</span>
					</a>
					<i class="icon_delta">
					</i>
					<!-- ==== -->
					<!-- 顶部购物车效果 -->
					<script type="text/javascript">
							$(function(){
								$('.shopping_cart_v2').mouseover(function() {
									$('.shop_cart_info').css({display:"block"});
								});
								$('.shopping_cart_v2').mouseout(function() {
									$('.shop_cart_info').css({display:"none"});
								});
							})

					</script>
					<!-- ===== -->
					<!-- <div style="" class="shop_cart_info">
						<ul>
							<li>
								<a href="" target="_blank" class="imgbox">
									<img src="http://127.0.0.1/c_57_shop/my_store/Public/Home/images/1zlav6_ifrgim3dgvqtcyrqguzdambqmeyde_640x960.jpg_100x100.jpg" alt="" width="45">
								</a>
								<a href="" target="_blank" class="title">
									加厚毛领羽绒服衣外套
								</a>
								<span class="info">颜色：米白 尺码：M</span>
								<span class="price">¥244.30</span>
								<span class="del">删除</span>
							</li>
						</ul>
						<div class="subbox">
							<div class="fr">
								<a href="http://127.0.0.1/c_57_shop/my_store/index.php?m=Home&c=Cart&a=index" target="_blank" class="goel">
									查看购物车
								</a>
							</div>
						</div>
					</div> -->
					<!--如果是空的那就显示-->
					<div style="" class="shop_cart_info">
						<ul>
							<li>
								<span class="info">购物车还是空的的!!</span>
								<span>赶快来添加属于你的宝贝吧!</span>
							</li>
						</ul>
					</div>
					<!-- ======================================== -->
				</li>
				<!--我的购物车结束-->
				<!--客户服务-开始-->
				<li class="s1 has_line has_icon custom_item">
					<a rel="nofollow" href=""  target="_blank">
						客户服务
					</a>
					<i class="icon_delta">
					</i>
					<ol class="ext_mode">
						<li class="s2">
							<a target="_blank"  href="">
								联系合作
							</a>
						</li>
						<li class="s2">
							<a  href="" target="_blank">
								帮助
							</a>
						</li>
					</ol>
				</li>
				
			</ul>
		</div>
	</div>
	<!--顶部结束-->
	<!-- 中间区域 -->
	<div class="header_mid clearfix">
		<div class="wrap">
			<a  href="http://127.0.0.1/c_57_shop/my_store/index.php?m=Home&c=Index&a=index" class="logo" >
			</a>
			<div class="normal-search-content">
				<!--顶部隐藏搜索框-->
				<div class="top_nav_search" id="nav_search_form">
					<!---->
					<!--搜索框 -->
					<div class="search_inner_box clearfix">
						<div class="selectbox" >
							<span class="selected">搜商品</span>
							<ol>
								<li class="current" >
									<a href="#">
										商品
									</a>
								</li>
								<li data-index="shop">
									<a href="#">
										店铺
									</a>
								</li>
							</ol>
						</div>
						<!---------------------------搜索框-------------->
						<form action="" method="" id="top_nav_form">
							<input  name="q" class="ts_txt fl"  value="" type="text">
							<input value="搜  索" class="ts_btn" type="submit">
							<input name="t" value="bao" id="select_type" type="hidden">
						</form>
						<!-------------------------->
						<div style="display:none;" class="top_search_hint">
						</div>
					</div>
					<div class="ts_hotwords">
						<a  class="ts_hotword" style="color: #999999 " href="">
							呢外套
						</a>
						<a class="ts_hotword" style="color: #999999 " href="">
							风衣
						</a>
						<a class="ts_hotword" style="color: #999999 " href="">
							羽绒服
						</a>
						<a  class="ts_hotword" style="color: #999999 " href="">
							运动鞋
						</a>
						<a  class="ts_hotword" style="color: #999999 " href="">
							卫衣
						</a>
						<a class="ts_hotword" style="color: #999999 " href="">
							雪地靴
						</a>
						<a  class="ts_hotword" style="color: #999999 " href="">
							家居服
						</a>
						<a  class="ts_hotword" style="color: #999999 " href="">
							新款女包
						</a>
						<a class="ts_hotword" style="color: #999999 " href="">
							毛衣
						</a>
					</div>
				</div>
			</div>
		
			
		</div>
	</div>

 
<div id="body_wrap">
<div class="mu_wrap wrap clearfix">	
<!--========左侧导航开始=======-->
<div class="mu_nav_wrap">

        <!--个人信息开始-->
       <?php foreach ($userData as $u){?>
    <div class="mu_nav_info">
        <div class="mu_nav_info_avatar">
            <div class="mu_nav_info_avatar_mk"></div>
            <img src="<?php echo __ROOT__?>/<?php echo $u['avatar']?>" alt="" height="100" width="100">
        </div>
        <p class="mu_nav_info_uname"><?php echo $u['nickname']?></p>
        <a data-ptp-idx="39" target="_blank" style="width:45px;" class="mu_nav_info_ulot" href="">
        	<span id="vip_level" class="vip_level0" style="float:left;width: 45px; display: inline-block; height: 14px; margin-top: 3px;"></span>
        </a>
	
    </div>
    <?php }?>
  <!--个人信息结束-->

    <div class="mu_nav mu_expand">
        <div class="mu_title">我的订单</div>

        <ul class="mu_nav_item" style="display:none;">
            <li class="c">
                <a  href="">全部订单</a>
            </li>
            <li>
                <a  href="">待付款 </a>
            </li>
            <li>
                <a  href="">待收货 
                	<i class="mu_nav_count">2<i class="mu_nav_count_arw"></i></i>
                </a>
            </li>
            <li>
                <a  href="">待评价 </a>
            </li>
            <li>
                <a  href="">退货退款</a>
            </li>
            </ul>
    </div>
    <!--我的钱包-->
    <div class="mu_nav">
        <div class="mu_title"><a  href="<?php echo U('Member/wallet')?>">我的钱包</a></div>
    </div>
 
    <!--地址管理-->
    <div class="mu_nav">
        <div class="mu_title"><a  href="<?php echo U('Member/address')?>">地址管理</a></div>
    </div>
	
	<!--账号设置-->
    <div class="mu_nav pb40">
        <div class="mu_title">帐号设置</div>
	        <ul class="mu_nav_item" style="display: block;">
	            <li><a  href="<?php echo U('Member/accountSettings')?>">账号信息</a></li>
	        </ul>
	         <ul class="mu_nav_item" style="display: block;">
	            <li><a  href="<?php echo U('Member/change')?>">修改密码</a></li>
	        </ul>
    </div>
   
</div>
<!--左侧导航结束-->


<div class="mu_content_wrap">
	<!--订单表头-->
<div class="order-title">
    <ul class="order-title-column clearfix">
        <li class="goods">商品</li>
        <li class="price">单价(元)</li>
        <li class="quantity">数量</li>
        <!--<li class="aftersale">售后</li>-->
        <li class="total">实付款(元)</li>
        <li class="status">交易状态</li>
        <li class="other">操作</li>
    </ul>
</div>
<!--======-->
<?php foreach ($data as $v){?>
	<!--订单列表-->
			<!--订单-2-->
        <div class="order-section" >
        	<table class="order-table">
        		<tbody>
        			<!--订单头部信息 订单编号，成交时间，店铺信息-->
        			<tr class="order-table-header">
        				<td colspan="7">
        					<!--订单信息-->
        					<div class="order-info fl">
						        <span class="no">订单编号：<span class="order_num"><?php echo $v['number']?></span></span>
						        <span class="deal-time">成交时间：<?php echo date('Y-m-d',$v['addtime'])?></span>
        					</div>
							<!--联系商家-->
                            <a  href="javascript:;" class="mogutalk_btn" > 
                            	<span class="icon icon-contact">联系商家</span>
                            </a>
            			</td>
        			</tr>
        			<!--订单详情-->
                    <tr class="order-table-item last">
            			<td class="goods">
                			<a  class="pic" href="" title="查看宝贝详情" hidefocus="true" target="_blank">
                    				<img src="<?php echo __ROOT__?>/<?php echo $v['pic']?>" alt="查看宝贝详情" width="70">
                			</a>
								<!--商品描述-->
				                <div class="desc">
				                	<!--商品名称和照片-->
				                    <p>
				                        <a  href="" target="_blank"><?php echo $v['gname']?></a>
				                        <!--订单照片-->
				                          <a  class="snapshot" href="" target="_blank">[交易快照]</a>
				                    </p>
				                    <!--颜色..尺码-->
				                    <?php foreach ($v['spec'][0] as $kk=>$vv){?>
				                    <p><?php echo $kk?>：<?php echo $vv?></p>
				                    <?php }?>
									
				                </div>
                            </td>
                            <!--商品价格-->
				            <td class="price">
				            	<!--市场价-->
				                <p class="price-old"><?php echo $v['marketprice']?></p>
				                <!--商城价-->
				                <p><?php echo $v['shopprice']?></p>
				            </td>
				            <!--商品数量-->
            				<td class="quantity"><?php echo $v['quantity']?></td>
            		
							<!--总价格-->
                            <td class="total" rowspan="1">
                    			<ul>
		                        	<li>
			                            <p class="total-price">￥<?php echo $v['subtotalprice']?></p>
			                            <p>(包邮)</p><p></p>
		                        	</li>
                            	</ul>
                			</td>
                			
                			<td class="status" rowspan="1">
                    			<p class="icon icon-delivery"><?php echo $v['status']?></p>	
                    			<a class="order-link" target="_blank" href="">订单详情</a>
                                            <div class="delivery">
                            <a  class="order-link delivery-info" href="javascript:;"  >查看物流</a>
	                            <div class="delivery-detail">
	                            	<!--空的-->
	                                <div class="inner">还没有更新物流信息</div>
	                                <!--有物流信息的-->
	                                <!-------------->
				                       <!--<div class="inner">
											<p>快递名：申通快递</p>
											<p>运单号：968452601871</p>
											<ul>
												<li class="newest">
												<p>由【江苏无锡中转部】发往【上海航空部】</p>
												<p>2015-11-21 05:47:47</p>
												</li>
												<li>
												<p>由【江苏常熟公司】发往【江苏无锡中转部】</p>
												<p>2015-11-21 00:02:59</p>
												</li>
												<li>
												<p>【江苏常熟公司】的收件员【陈进3218453012】已收件</p>
												<p>2015-11-20 23:31:09</p>
												</li>
											</ul>
											<a class="delivery-more" target="_blank" href=""  >查看详情</a>
									</div>-->
	                            <!------------>
	                            </div>
                        </div>
                     </td>

		                <td class="other" rowspan="1">
		                        <ul>
		                        	<?php if($v['status']=='未付款'){?>
                
                    	 <li>
                        	<a  class="order-btn primary order-confirm" href="javascript:;" onclick="if(confirm('确定取消订单吗？？')) location.href='<?php echo U('Order/del',array('oid'=>$v['oid']))?>'">取消订单</a>
                        </li>
                        <li>
                        	<a  class="order-btn primary order-confirm" href="<?php echo U('Member/edit',array('oid'=>$v['oid']))?>" >去付款</a>
                        </li>
                        
               <?php }?>
                        <?php if($v['status']=='已发货'){?>
                
	                        <li>
	                        	<a  class="order-btn primary order-confirm" href="javascript:;" >确认收货</a>
	                        </li>
                        
               <?php }?>
                        <?php if($v['status']=='待发货'){?>
                
		                       <li>
		                    	<a  class="order-btn primary order-confirm" href="javascript:;" >提醒卖家发货</a>
		                    </li>
                    	
               <?php }?>
                     <?php if($v['status']=='已完成'){?>
                
	                    <li>
	                    	<a  class="order-btn primary order-confirm" href="javascript:;" >查看订单</a>
	                    </li>
                        <li>
                        	<a  class="order-btn primary order-confirm" href="javascript:;" >去评价</a>
                        </li>
                      
               <?php }?>
                    </ul>
		                </td>
                        </tr>
    		</tbody>
		</table>
	</div>
	<?php }?>
</div>
  
</div>
</div>
</div>

<!-- 载入公共底部 -->
     <!-- 公共底部文件 -->
<div class="foot J_footertimer" data-ptp="_foot" data-svrtime="1447789778">
	<div class="wrap foot_wrap clearfix">
		<div class="foot_info">
			<a  class="info_logo" href="">
			</a>
			<div class="info_text">
				<p>
					营业执照注册号：
					<a  href="" target="_blank">
						330106000129004
					</a>
				</p>
				<p>
					增值电信业务经营许可证：
					<a  href="" target="_blank">
						浙B2-20110349
					</a>
				</p>
				<p>
					ICP备案号：浙ICP备10044327号-3
				</p>
				<p class="mgjhostname" title="guomai31082">
					©2015 Mogujie.com 杭州卷瓜网络有限公司
				</p>
			</div>
		</div>
		<div class="foot_link">
			<dl class="link_company">
				<dt>
					公司
				</dt>
				<dd>
					<a  href="http:://www.mogujie.com" target="_blank">
						关于我们
					</a>
				</dd>
				<dd>
					<a  href="" target="_blank">
						招聘信息
					</a>
				</dd>
				<dd>
					<a  href="" target="_blank">
						联系我们
					</a>
				</dd>
			</dl>
			<dl class="link_consumer">
				<dt>
					消费者
				</dt>
				<dd>
					<a  href="http:://www.mogujie.com" target="_blank">
						帮助中心
					</a>
				</dd>
				<dd>
					<a  href="" target="_blank">
						意见反馈
					</a>
				</dd>
				<dd>
					<a  href="" target="_blank">
						手机版下载
					</a>
				</dd>
			</dl>
			<dl class="link_business">
				<dt>
					商家
				</dt>
				<dd>
					<a href="" target="_blank">
						免费开店
					</a>
				</dd>
				<dd>
					<a href="" target="_blank">
						商家社区
					</a>
				</dd>
				<dd>
					<a href="" target="_blank">
						商家入驻
					</a>
				</dd>
				
			</dl>
			<dl class="link_safe">
				<dt>
					权威认证
				</dt>
				<dd>
					<a  class="pc"  href="javascript:;" target="_blank">
					</a>
					<a  class="pa"  target="_blank" href="javascript:;">
					</a>
					<a  href="javascript:;"  class="kx" target="_blank">
					</a>
				</dd>
			</dl>
		</div>
	</div>
	<div class="wrap foot_wrap w-links clearfix">
		<ul>
			<li>
				友情链接:
			</li>
			<li>
				<a target="_blank" href="http://www.baidu.com">
					百度
				</a>
			</li>
			<li>
				<a target="_blank" href="http://www.jd.com">
					京东
				</a>
			</li>
			<li>
				<a target="_blank" href="http://www.tmall.com">
					天猫
				</a>
			</li>
			<li>
				<a target="_blank" href="http://www.houdunwang.com">
					后盾网
				</a>
			</li>
			
			<li>
				<a target="_blank" href="http:://www.mogjie.com">
					蘑菇街包包
				</a>
			</li>
			<li>
				<a target="_blank" href="http:://www.mogjie.com">
					蘑菇街家居
				</a>
			</li>
			
		</ul>
	</div>
</div>
<script type="text/javascript" src="http://127.0.0.1/c_57_shop/my_store/Public/Home/js/header.js"></script>

 </body>

</html>